#!/usr/bin/python
import web
from lib import loadHtmlFile,MC,chklogin
from config import *

mc = MC(userDB)
class main:
    def GET(self):
        if(chklogin(web,mc)):
            return loadHtmlFile('%spagetalk.html'%(htmlPath))
        return "<script>setTimeout(function(){return window.location.href='./';},2000);</script>please login"

class myhome:
    def GET(self):
        if(chklogin(web,mc)):
            return loadHtmlFile('%sdefault.html'%(htmlPath))
        return "<script>setTimeout(function(){return window.location.href='./';},2000);</script>please login"
 
